import Vue from 'vue'
import Router from 'vue-router'
import ShoppingMall from '@/components/pages/ShoppingMall'
import Register from '@/components/pages/Register'
import Login from '@/components/pages/Login'
import Goods from '@/components/pages/Goods'
import CategoryList from '@/components/pages/CategoryList'
import Cart from '@/components/pages/Cart'

Vue.use(Router)

export default new Router({
    routes:[
        {path:'/',name:'ShoppingMall', component: ShoppingMall},//首页
        {path:'/register',name:'Register', component: Register},//注册页
        {path:'/login',name:'Login',component: Login},//登录页
        {path:'/goods',name:'Goods',component:Goods},
        {path:'/categoryList',name:'CategoryList',component:CategoryList},
        {path:'/cart',name:'Cart',component:Cart}

    ]
})